import QtQuick 2.0
import QtQuick 2.0
import "../components"

// 荧光
Item {
    id: root
    property int blockPage: 0

    anchors.fill: parent


    Rectangle{          // 上面的tab行
        height: 60*dp
        width: root.width
        Row{
            x: 12*dp
            spacing: 24*dp
            PushButton{
                height: 40*dp
                width: 40*dp
                y: 20*dp
                title: "配置"
                underlineSelect: true
                isSelected: blockPage === 0
                onReleased: {
                    blockPage = 0
                }
            }PushButton{
                height: 40*dp
                width: 70*dp
                y: 20*dp
                title: "老化测试"
                underlineSelect: true
                isSelected: blockPage === 1
                onReleased: {
                    blockPage = 1
                }
            }PushButton{
                height: 40*dp
                width: 110*dp
                y: 20*dp
                title: "升降温曲线校准"
                underlineSelect: true
                isSelected: blockPage === 2
                onReleased: {
                    blockPage = 2
                }
            }PushButton{
                height: 40*dp
                width: 70*dp
                y: 20*dp
                title: "温度校准"
                underlineSelect: true
                isSelected: blockPage === 3
                onReleased: {
                    blockPage = 3
                }
            }
        }
        CustomBorder{
            bBorderwidth: 1
            borderColor: "#CCCCCC"
        }
    }

    Item{

        height: parent.height - 80*dp
        width: parent.width - 40*dp
        y: 80*dp
        x: 20*dp
        MaintainHeatBlock_Config{
            visible: blockPage === 0
        }MaintainHeatBlock_AgingTest{
            visible: blockPage === 1
        }MaintainHeatBlock_Curve{
            visible: blockPage === 2
        }MaintainHeatBlock_Tempeature{
            visible: blockPage === 3
        }

    }
}
